package com.orange.score.activity.more;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import java.util.List;

public class MoreAdapter extends ArrayAdapter<String>
{
  private static final String TAG = "MoreAdapter";
  private List<String> dataList;
  private int resource;

  public MoreAdapter(Context paramContext, int paramInt, List<String> paramList)
  {
    super(paramContext, paramInt, paramList);
    this.resource = paramInt;
    this.dataList = paramList;
  }

  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    RelativeLayout localRelativeLayout;
    TextView localTextView;
    ImageView localImageView;
    if (paramView == null)
    {
      localRelativeLayout = new RelativeLayout(getContext());
      ((LayoutInflater)getContext().getSystemService("layout_inflater")).inflate(this.resource, localRelativeLayout, true);
      localTextView = (TextView)localRelativeLayout.findViewById(2131558494);
      localImageView = (ImageView)localRelativeLayout.findViewById(2131558493);
      switch (paramInt)
      {
      default:
      case 0:
      case 1:
      case 2:
      case 3:
      case 4:
      case 5:
      case 6:
      case 7:
      case 8:
      case 9:
      }
    }
    while (true)
    {
      while (true)
      {
        while (true)
        {
          while (true)
          {
            while (true)
            {
              while (true)
              {
                while (true)
                {
                  while (true)
                  {
                    while (true)
                    {
                      while (true)
                      {
                        while (true)
                        {
                          return localRelativeLayout;
                          localRelativeLayout = (RelativeLayout)paramView;
                        }
                        localRelativeLayout.setBackgroundResource(2130837688);
                        localTextView.setText((CharSequence)this.dataList.get(0));
                        localImageView.setBackgroundResource(2130837671);
                      }
                      localRelativeLayout.setBackgroundResource(2130837686);
                      localTextView.setText((CharSequence)this.dataList.get(1));
                      localImageView.setBackgroundResource(2130837672);
                    }
                    localRelativeLayout.setBackgroundResource(2130837686);
                    localTextView.setText((CharSequence)this.dataList.get(2));
                    localImageView.setBackgroundResource(2130837675);
                  }
                  localRelativeLayout.setBackgroundResource(2130837686);
                  localTextView.setText((CharSequence)this.dataList.get(3));
                  localImageView.setBackgroundResource(2130837676);
                }
                localRelativeLayout.setBackgroundResource(2130837686);
                localTextView.setText((CharSequence)this.dataList.get(4));
                localImageView.setBackgroundResource(2130837677);
              }
              localRelativeLayout.setBackgroundResource(2130837686);
              localTextView.setText((CharSequence)this.dataList.get(5));
              localImageView.setBackgroundResource(2130837678);
            }
            localRelativeLayout.setBackgroundResource(2130837686);
            localTextView.setText((CharSequence)this.dataList.get(6));
            localImageView.setBackgroundResource(2130837679);
          }
          localRelativeLayout.setBackgroundResource(2130837686);
          localTextView.setText((CharSequence)this.dataList.get(7));
          localImageView.setBackgroundResource(2130837680);
        }
        localRelativeLayout.setBackgroundResource(2130837686);
        localTextView.setText((CharSequence)this.dataList.get(8));
        localImageView.setBackgroundResource(2130837674);
      }
      localRelativeLayout.setBackgroundResource(2130837684);
      localTextView.setText((CharSequence)this.dataList.get(9));
      localImageView.setBackgroundResource(2130837681);
    }
  }

  static class ViewHolder
  {
    ImageView icon;
    TextView text;
  }
}